import http from '@/http'
import { ListXsbjParam, XsbjModel } from './XsbjModel'

export const addUserApi = (param:XsbjModel) => {
    return http.post("/api/xsbj",param)
}

export const getListApi = (param:ListXsbjParam) => {
    return http.get("/api/xsbj/list",param)
}

export const editUserApi = (param:XsbjModel) => {
    return http.put("/api/xsbj",param)
}

export const deleteUserApi = (id:string) => {
    return http.delete(`/api/xsbj/${id}`)
}
